package cn.ycxy.lbl.pojo.order.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 更新订单DTO
 * @author BaoL
 * @since 2023-04-12
 */
@Data
@ApiModel(value="更新订单DTO", description="更新订单DTO")
public class OrderUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "订单id不能为空")
    @ApiModelProperty(value = "id")
    private Long id;

    @NotNull(message = "商品id不能为空")
    @ApiModelProperty(value = "商品id")
    private Long postId;

    @NotNull(message = "订单状态不能为空")
    @ApiModelProperty(value = "状态，-1=全部，0=待发货，1=待收货，2=已完成，3=已取消")
    private Integer state;


}
